﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dal;
using Dtl;
 
namespace Bll
{
    public class DistribuitorEmailBlo
    {
        public static DataSet getEmailsBydistributors(int idDistributor)
        {
            return DistribuitorEmailDAO.getEmailsBydistributors(idDistributor);
        }

        public static DataSet getPhaseBydistributors(int idDistributor) 
        {
            return DistribuitorEmailDAO.getPhaseBydistributors(idDistributor);
        }

        public static DataSet getPhases() 
        {
            return DistribuitorEmailDAO.getPhases();
        }

        public static int setDistribuitorPhaseAndEmail(int idDistribuitor, bool sendAlert, List<Dtl.DistribuitorEmail> listEmail, List<Dtl.DistribuitorPhase> lisDistPhase)
        {
            return DistribuitorEmailDAO.setDistribuitorPhaseAndEmail(idDistribuitor, sendAlert, listEmail, lisDistPhase);
        }

        public static int DeleteEmail(int idDistribuitorEmail) 
        {
            return DistribuitorEmailDAO.DeleteEmail(idDistribuitorEmail);
        }

        public static int DeletePhase(int idDistrbuitorPhase)
        {
            return DistribuitorEmailDAO.DeletePhase(idDistrbuitorPhase);
        }
    }
}
